﻿#pragma once
#include <QUndoCommand>


class BaseCommand : public QUndoCommand
{
public:
	BaseCommand(bool isFirstPush = true)
		:m_isFirstPush(isFirstPush)
	{

	}
protected:
	// 防止QUndoStack的push命令，自动触发redo命令
	bool m_isFirstPush;
};
